﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DH.Core.Helper
{
    internal class Defaults
    {
        internal class ErrorMessage
        {
            internal const string Key = "";
            internal const string NullString = "null";
        }

        internal class BaseException
        {
        }

        internal class NotFoundException
        {
            internal const string Title = "Not found.";
            internal const string Code = "NFOUND001";
        }

        internal class UnauthorizedException
        {
            internal const string Title = "Access denied.";
            internal const string Code = "UNAUTH001";
        }

        internal class ValidationException
        {
            internal const string Title = "Bad request.";
            internal const string Code = "UNVALI001";
        }

        internal class EntityNotFoundException
        {
            internal const string Title = "Entity Not found.";
            internal const string Code = "UNVALI001";
        }
        internal class ServerErrorException
        {
            internal const string Title = "Server Error.";
            internal const string Code = "500";
        }
    }


    public static class ConstHelper {

        public  const string Region = "DH.Framework";
        //org 一个对象(tree 对象)
        public const string OrgConst = "ORGANIZE_ALL";
        //org  多对象
        public const string OrgAllObjConst = "ORGANIZE_ALL_Obj";

        //系统码
        public const string SystemRootCode = "DH";

        //类型：
        public const string CategoryType = "DH.Category";
        //字典
        public const string CategoryDicType = "DH.Category.DicItem";
        //资源
        public const string CategoryResourceType = "DH.Category.Resource";

        //功能
        public const string FeaturesType = "DH.Features";
        public const string FeaturesUIViewType = "DH.Features.UIView";
        public const string FeaturesFuncType = "DH.Features.Function";

        //按钮
        public const string ButtonType = "DH.Button";

    }
}
